<?php

namespace Home\Controller;

use Think\Controller;

class IndexController extends Controller {
	public function index() {
		$book_list = D ( 'book' )->get_book_list ();
		$type_list = D ( 'BookType' )->get_list ();
		
		$this->assign ( 'type_list', $type_list );
		$this->assign ( 'book_list', $book_list );
		
		$this->display ();
	}
	
	// 图书列表
	public function book_list() {
		//
		echo '呵呵';
	}
	
	// 添加图书
	
	// 修改图书
	
	// 删除图书
}